package com.yunc.modules.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunc.modules.shop.entity.ShopAddress;

public interface IShopAddressService extends IService<ShopAddress> {

    /**
     * 获取默认type=1,如果没有默认,获取第一个
     */
    ShopAddress getDefault(String memberId);

    /**
     * 保存地址
     * 去除其他默认的选择项
     */
    boolean saveAddress(ShopAddress address);

    /**
     * 更新地址
     * 去除其他默认的选择项
     */
    boolean updateAddress(ShopAddress address);
}
